#pragma once

#if _MSC_VER >= 1600
#pragma execution_character_set("utf-8")
#endif

#include <QDir>
#include <QTime>
#include <QDebug>
#include <QDateTime>

#define AppPath QDir::currentPath()
#define TIMEMS qPrintable (QTime::currentTime().toString("HH:mm:ss zzz"))
#define TIME qPrintable (QTime::currentTime().toString("HH:mm:ss"))
#define QDATE qPrintable (QDate::currentDate().toString("yyyy-MM-dd"))
#define QDATE_S qPrintable (QDate::currentDate().toString("yyyyMMdd"))
#define QDATE_QUOTE qPrintable (QDate::currentDate().toString("yyyyMMdd HH:mm:ss"))
#define QTIME qPrintable (QTime::currentTime().toString("HH-mm-ss"))
#define QTIMEZ qPrintable (QTime::currentTime().toString("HH-mm-ss-zzz"))
#define QTIMEZ_IN_TRADING qPrintable (QTime::currentTime().toString("HHmmsszzz"))
#define QTIMEZ_FORLOG qPrintable (QTime::currentTime().toString("HHmmss"))
#define DATETIME qPrintable (QDateTime::currentDateTime().toString("yyyy-MM-dd HH:mm:ss"))
#define STRDATETIME qPrintable (QDateTime::currentDateTime().toString("yyyy-MM-dd-HH-mm-ss"))
#define STRDATETIMEMS qPrintable (QDateTime::currentDateTime().toString("yyyy-MM-dd-HH-mm-ss-zzz"))